Improve pp-emacs-lisp-code backquote form printing
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 18 Feb 2024 00:55:54 +0000 (01:55 +0100)
committerMichael Heerdegen <michael_heerdegen@web.de>
Mon, 11 Mar 2024 04:24:59 +0000 (05:24 +0100)
commitbbc53e0bcf3fe18e7c1cd51fb8719cf62b9f6c71
treea193144bbc550cdb28f05930755b4bb663832580
parent9a2ce74c3783c4be8ba70642da374d8e77c6f9ac
Improve pp-emacs-lisp-code backquote form printing

* lisp/emacs-lisp/pp.el (pp--quoted-or-unquoted-form-p): New helper
function.
(pp--insert-lisp): Take care of quoted, backquoted and
unquoted expressions; print using an recursive call.
(pp--format-list): Exclude more cases from printing as a function call
by default.  Print lists whose second-last element is an (un)quoting
symbol using dotted list syntax; e.g. (a b . ,c) instead of (a b \, c).
lisp/emacs-lisp/pp.el